package net.zdsoft.wpchat.support.service.impl;

import java.util.List;

import javax.annotation.Resource;

import net.zdsoft.wpchat.support.dao.OperatorDao;
import net.zdsoft.wpchat.support.entity.Operator;
import net.zdsoft.wpchat.support.service.OperatorService;

import org.springframework.stereotype.Service;

/**
 * 后台用户操作Service实现
 *
 * @author xuan
 */
@Service
public class OperatorServiceImpl implements OperatorService {

    @Resource
    private OperatorDao operatorDao;

    @Override
    public Operator getOperatorByUserNameAndPwd(String userName, String pwd) {
        return operatorDao.findByUserNameAndPwd(userName, pwd);
    }

    @Override
    public Operator getOperatorByAcountId(String accountId) {
        return operatorDao.findOperatorById(accountId);
    }

	@Override
	public List<Operator> getOperatorsByIds(String[] ids) {
		return operatorDao.findByIds(ids);
	}

}
